.carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 16px;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: white;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", sans-serif;
}

header {
    background-color: #87CEEB;
    padding: 10px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.logo {
    color: white;
    margin: 0;
    font-size: 24px;
}

.user-actions {
    color: white;
}

.login-btn {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    padding: 0 10px;
}

.login-btn:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.main-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    cursor: pointer;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    align-items: center;
}

.form-group label {
    width: 80px;
    text-align: right;
    margin-right: 10px;
}

.form-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-links {
    text-align: right;
    font-size: 14px;
}

.register-link {
    color: #87CEEB;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}

.login-submit {
    background-color: #87CEEB;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-submit:hover {
    background-color: #5fb8e0;
}

.home-header {
    justify-content: space-between;
}

select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

/* 商品详情页样式 */
.goods-detail {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    gap: 20px;
    background: #fff;
}

.goods-left {
    width: 50%;
    background: #f5f5f5;
    padding: 20px;
}

.goods-left img {
    width: 100%;
    height: auto;
    display: block;
}

.goods-right {
    width: 50%;
    padding: 20px;
    background: #ffebee;
}

.goods-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.goods-price,
.goods-discount,
.goods-current-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.price-label,
.discount-label,
.current-price-label {
    width: 100px;
    color: #333;
}

.price-value {
    color: #999;
    text-decoration: line-through;
}

.discount-value {
    color: #4CAF50;
}

.current-price-value {
    color: #f00;
    font-size: 24px;
    font-weight: bold;
}

.back-btn {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    background: #f44336;
    border-radius: 4px;
}

.back-btn:hover {
    background: #d32f2f;
}

/* 商品详情图片样式 */
.goods-detail-images {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
}

.goods-detail-images img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* 商品列表页样式 */
.goods-list-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.goods-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-btn {
    padding: 5px 10px;
    background: #87CEEB;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn:hover {
    background: #5fb8e0;
}

.page-input {
    width: 50px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.page-select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.goods-item {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.goods-item:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.goods-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

.goods-item-title {
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods-item-price {
    color: #f00;
    font-size: 16px;
    margin-bottom: 5px;
}

.goods-item-original {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.goods-tag {
    display: inline-block;
    padding: 2px 5px;
    background: #f00;
    color: white;
    font-size: 12px;
    border-radius: 2px;
    margin-right: 5px;
}

.pagination-info.bottom {
    justify-content: center;
} 